package com.yunyi.model.worker.dto;

import com.yunyi.model.worker.WorkerInfo;
import lombok.Data;

/**
 * @ClassName WorkerImgDto
 * @Description 员工图片表
 * @Author leizhang
 * Date 2021/8/18 11:10 下午
 * @Version 1.0
 **/
@Data
public class WorkerImgDto  {
    /**照片类型 1身份证照  2银行卡照**/
    private  int tag;
    /**身份证照id**/
    private int idCardImgId;
    /**银行卡照**/
    private int bankImgId;
    /**媒体资源id**/
    private int id;
    /**文件路径**/
    private String fileUrl;

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public int getIdCardImgId() {
        return tag==1?this.id:-1;
    }

    public void setIdCardImgId(int idCardImgId) {
        this.idCardImgId = idCardImgId;
    }

    public int getBankImgId() {
        return tag == 2?this.id : -1;
    }

    public void setBankImgId(int bankImgId) {
        this.bankImgId = bankImgId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
}
